unit UController;

interface

    uses
        db;
    type
        Controller = class

protected

public
    constructor Create;
    destructor Destroy;
    function Salvar (obj : TObject) : string;     virtual;
    function getDs : TDataSource;                 virtual;
    function Carrega (obj : Tobject) : Tobject ;  virtual;
    function Excluir (obj : Tobject) : String ;   virtual;
    function Buscar (chave : string) : boolean ;  virtual;
    function Editar (obj: Tobject) : string;      virtual;
    function existe(dado:string):Boolean;         virtual;
end;

implementation


{ Controller }

function Controller.Buscar(chave: string): boolean;
begin

end;

function Controller.Carrega(obj: Tobject): Tobject;
begin

end;

constructor Controller.Create;
begin

end;

destructor Controller.Destroy;
begin

end;

function Controller.Editar(obj: Tobject): string;
begin

end;

function Controller.Excluir(obj: Tobject): String;
begin

end;

function Controller.existe(dado: string): Boolean;
begin

end;

function Controller.getDs: TDataSource;
begin

end;

function Controller.Salvar(obj: TObject): string;
begin

end;

end.


